package ext.tianma.model;

import wt.fc.ObjectReference;
import wt.fc.WTObject;

import com.ptc.windchill.annotations.metadata.ColumnProperties;
import com.ptc.windchill.annotations.metadata.GenAsPersistable;
import com.ptc.windchill.annotations.metadata.GeneratedProperty;
import com.ptc.windchill.annotations.metadata.PropertyConstraints;

/**
 * 类名: APLQuantity </br>
 * 包名: ext.tianma.model
 * 描述: APL材料用量表
 * @author xucr
 * 创建时间: 2020年11月3日
 * 发布版本: V1.0
 */
@GenAsPersistable(superClass = WTObject.class, interfaces = {}, properties = {
	@GeneratedProperty(name = "persistable", type = ObjectReference.class, javaDoc = "APL材料", 
		constraints = @PropertyConstraints(required = false)),
	@GeneratedProperty(name = "quantity", type = String.class, javaDoc = "用量", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 10, required = false)),
	@GeneratedProperty(name = "ranges", type = String.class, javaDoc = "范围", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 300, required = false)),
	@GeneratedProperty(name = "levels", type = String.class, javaDoc = "当前等级", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 100, required = false)),
	@GeneratedProperty(name = "levelTo", type = String.class, javaDoc = "等级进阶至", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 100, required = false)),
	@GeneratedProperty(name = "promotion", type = Boolean.class, javaDoc = "是否需要进阶", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(required = false)),
	@GeneratedProperty(name = "status", type = String.class, javaDoc = "状况", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 100, required = false)),
	@GeneratedProperty(name = "processes", type = Boolean.class, javaDoc = "是否流程中", 
		columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(required = false))
	})
public class APLQuantity extends _APLQuantity{
	static final long serialVersionUID = 1;
	public static APLQuantity newAPLQuantity()  {
		final APLQuantity instance = new APLQuantity();
		try {
			instance.initialize();
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
		return instance;
	}
}
